package ooday02;
//动物测试类
public class AnimalTest {
    public static void main(String[] args) {
        Dog dog1 = new Dog("旺财",5,"白");
        dog1.eat();
        dog1.drink();
        dog1.lookHome();
        System.out.println("----------------------------------");
        Dog dog2 = new Dog("招财",2,"黄");
        dog2.eat();
        dog2.drink();
        dog2.lookHome();
        System.out.println("----------------------------------");
        Dog dog3 = new Dog("发财",3,"黑");
        dog3.eat();
        dog3.drink();
        dog3.lookHome();
        System.out.println("----------------------------------");
        Chick chick1 = new Chick("老大",3,"褐");
        chick1.eat();
        chick1.drink();
        chick1.layEggs();
        System.out.println("----------------------------------");
        Chick chick2 = new Chick("老二",2,"白");
        chick2.eat();
        chick2.drink();
        chick2.layEggs();
        System.out.println("----------------------------------");
        Chick chick3 = new Chick("老三",1,"红");
        chick3.eat();
        chick3.drink();
        chick3.layEggs();
        System.out.println("----------------------------------");
        Fish fish1 = new Fish("小金",1,"金");
        fish1.eat();
        fish1.drink();
        System.out.println("----------------------------------");
        Fish fish2 = new Fish("小蓝",2,"蓝");
        fish2.eat();
        fish2.drink();
    }
}
